package com.guli.gulimall.product.feign;

import com.guli.common.utils.R;
import com.guli.gulimall.product.entity.to.MemberPriceTo;
import com.guli.gulimall.product.entity.to.SkuFullReductionTo;
import com.guli.gulimall.product.entity.to.SkuLadderTo;
import com.guli.gulimall.product.entity.to.SpuBoundsTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @ClassName CouponFeignService
 * @Author 人帅且多金
 * @Date 2021/12/21 19:44
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {


    @RequestMapping("/coupon/skuladder/save")
    R saveSkuLadder(@RequestBody SkuLadderTo skuLadderTo);

    @RequestMapping("/coupon/skufullreduction/save")
    R saveSkuFullReduction(@RequestBody SkuFullReductionTo skuFullReductionTo);

    @RequestMapping("/coupon/memberprice/save")
    R saveBatchMemberPrice(@RequestBody List<MemberPriceTo> collect);

    @RequestMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundsTo spuBoundsTo);
}